package main

func Map1() {
	m1 := make(map[string]int, 2)
	m1["雷康明"] = 1
	m1["康明"] = 2

	for k, v := range m1 {
		println(k, v)
	}

	m2 := map[string]int{
		"lkm": 1,
		"km":  2,
	}
	for k, v := range m2 {
		println(k, v)
	}

	val, ok := m1["nihao"]
	if ok {
		println(val)
	}
	println(ok, val)

}
